package ${package.Service};

import com.dyrj.vo.PageResultMsg;
import com.dyrj.vo.ResultMsg;
import ${package.Entity}.${entity};
import ${superServiceClassPackage};


/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} {

    /**
    * 获取列表
    * @param record
    * @return
    */
    PageResultMsg table(${entity} record);

    /**
    * 新增
    * @param record
    * @return
    */
    ResultMsg add(${entity} record);


    /**
    * @Title: info
    * @Description: (查看详情)
    * @Params: [id]
    * @Return: ${entity}    返回类型
    * @Author:
    * @Date: 2018/9/4 下午3:19
    */
    ${entity} info(String id);

    /**
    * @Title: update
    * @Description: (更新)
    * @param record
    * @return ResultMsg    返回类型
    */
    ResultMsg update(${entity} record);

    /**
    * @Title: delete
    * @Description: (删除成功)
    * @param id
    * @return ResultMsg    返回类型
    */
    ResultMsg delete(String id);

}
</#if>
